import ImgUrl from '../img/img1.png'

import '../css/bg.css'

function packImg () {
    const oEle = document.createElement('div')
    oEle.innerHTML = "111"
    const oImg =  document.createElement('img')
    // oImg.src = require('../img/img1.png').default
    oImg.width = 400
    // oImg.src = require('../img/img1.png')
    oImg.src = ImgUrl
    oEle.appendChild(oImg)

    const oBgImg = document.createElement('div')
    oBgImg.className = 'bgBox'
    oEle.appendChild(oBgImg)
    return oEle
}

document.body.appendChild(packImg())